import service from '@/utils/request'

export const createDbFldMap = (data) => {
  return service({
    url: '/dbFldMap/createDbFldMap',
    method: 'post',
    data
  })
}

export const deleteDbFldMap = (data) => {
  return service({
    url: '/dbFldMap/deleteDbFldMap',
    method: 'delete',
    data
  })
}

export const deleteDbFldMapByIds = (data) => {
  return service({
    url: '/dbFldMap/deleteDbFldMapByIds',
    method: 'delete',
    data
  })
}

export const updateDbFldMap = (data) => {
  return service({
    url: '/dbFldMap/updateDbFldMap',
    method: 'put',
    data
  })
}

export const findDbFldMap = (params) => {
  return service({
    url: '/dbFldMap/findDbFldMap',
    method: 'get',
    params
  })
}

export const getDbFldMapList = (params) => {
  return service({
    url: '/dbFldMap/getDbFldMapList',
    method: 'get',
    params
  })
}

export const getAllDbFldMaps = (params) => {
  return service({
    url: '/dbFldMap/getAllDbFldMaps',
    method: 'get',
    params
  })
}

export const getDbFldMap = (data) => {
  return service({
    url: '/dbFldMap/getDbFldMap',
    method: 'post',
    data
  })
}


export const initDbFldMap = () => {
  return service({
    url: '/dbFldMap/initDbFldMap',
    method: 'get',
  })
}
